home *** CD-ROM | disk | FTP | other *** search
- on MakeListsOld
- global ACTION, TWNS, JOBS, LQDS
- set TWNS to list()
- set LQDS to list()
- set JOBS to list()
- repeat with K = 1 to count(ACTION)
- set P to getAt(ACTION, K)
- if (P > 1) and (P < 51) then
- append(TWNS, P)
- next repeat
- end if
- if (P mod 10) <= -5 then
- set HIT to 0
- repeat with L = 1 to count(JOBS)
- if getAt(ACTION, K - 2) = getAt(JOBS, L) then
- set HIT to 1
- end if
- end repeat
- if HIT = 0 then
- append(JOBS, getAt(ACTION, K - 2))
- end if
- end if
- end repeat
- set LP to 0
- set K to count(ACTION)
- repeat while (K > 0) and (LP < 8)
- set P to getAt(ACTION, K)
- if (P > 0) and (P < 150) then
- set LP to LP + 1
- append(LQDS, P)
- end if
- set K to K - 1
- end repeat
- if count(LQDS) < 8 then
- repeat with n = count(LQDS) + 1 to 8
- setAt(LQDS, n, 0)
- end repeat
- end if
- end
-